package name.jiaosha.air.test.web.controller;

import name.jiaosha.air.company.domain.Company;
import name.jiaosha.air.company.service.ICompanyService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

public class LoginController {

	@Autowired
	private ICompanyService companyService;
	
	public String login(String email, String password) {

		email = email == null ? "" : email.trim();

		password = password == null ? "" : password.trim();

		System.out.println(email);

		System.out.println(password);
		
		Company company =companyService.getCompanyById(1);
		
System.out.println(company.getName());
		return null;

	}

}
